#{extends 'main.html' /}
#{set title:'Home' /}<h1>reviewer</h1>
<div>
    <p>
        Create new category
    </p>
    #{ifErrors}
    <p class="error">
        ${errors[0]}
    </p>
    #{/ifErrors}
    #{form @CategoriesController.addCategoryAction()}
    <p>
        <span>
            <label for="cName">
                Category name
            </label>
        </span>
        <input type="text" name="cName" id="cName">
    </p>
    <p>
    <span>
        <label for="cName">
            Category keys
        </label>
    </span>
    <select multiple="true" name="keys" id="keys" >
        #{list items:allKeys, as:'key'}<option value="${key.id}">${key.name}</option>
        #{/list}
    </select>
    <p>
        <input type="submit" value="Submit your comment" />
    </p>#{/form}
</div>